if [[ `getprop persist.sys.power.default.powermode` = 1 ]]; then
    echo 1
else
    echo 0
fi